package oa.web.dao.impl;

import org.springframework.stereotype.Repository;

import oa.web.dao.AttendTypeDao;
import oa.web.dao.BaseDao;
import oa.web.pojo.AttendType;

@Repository
public class AttendTypeDaoImpl extends BaseDao implements AttendTypeDao {

	@Override
	public AttendType findById(int atypeId) {
		AttendType atype = (AttendType) getSqlMapClientTemplate().queryForObject(getNameSpace() + "getAttendTypeById", atypeId);
		return atype;
	}

	@Override
	public String getNameSpace() {
		return "attendType.";
	}

}
